<!--
    THIS EXAMPLE WAS DOWNLOADED FROM https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
-->
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <meta charset="utf-8">
    </head>
    <body style="height: 100%; margin: 0">
        <div id="container" style="height: 100%"></div>

        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
        <!-- Uncomment this line if you want to dataTool extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/dataTool.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use gl extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>
        -->
        <!-- Uncomment this line if you want to echarts-stat extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use map
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/china.js"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/world.js"></script>
        -->
        <!-- Uncomment these two lines if you want to use bmap extension
        <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<Your Key Here>"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/bmap.min.js"></script>
        -->

        <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};

var option;



option = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            crossStyle: {
                color: '#999'
            }
        }
    },
    toolbox: {
        feature: {
            dataView: {show: true, readOnly: false},
            magicType: {show: true, type: ['line', 'bar']},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    legend: {
        data: ['三角网架', '头盔','捕手护具', '棒球手套','棒球服', '棒球与棒球袋',
               '硬式棒球','软式棒球'
              ]
    },
    xAxis: [
        {
            type: 'category',
            data: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'],
            axisPointer: {
                type: 'shadow'
            }
        }
    ],
    yAxis: [
        {
            type: 'value',
            name: '销售总利润',
            min: 0,
            max: 10000,
            interval: 1000,
            axisLabel: {
                formatter: '{value} 元'
            }
        },
        {
            type: 'value',
            name: '销售数量（件）',
            min: 0,
            max: 90,
            interval: 50,
            axisLabel: {
                formatter: '{value} 件'
            }
        }
    ],
    series: [
        {
            name: '三角网架',
            type: 'bar',
            data: [1715, 1323,1519, 1078,1323,1764,1323]
        },
        {
            name: '头盔',
            type: 'bar',
            data: [3304, 3776,3717,3068,4661,4189,4248]
        },
        {
            name: '捕手护具',
            type: 'bar',
            data: [1794,1196,1794,1196,2093,2093,2093]
        },
        {
            name: '棒球服',
            type: 'bar',
            data: [4500,5000,4400,4450,4700,4100,4700]
        },
        {
            name: '硬式棒球',
            type: 'bar',
            data: [1885, 1598,2055,1787,2043,1668,1920]
        },
        {
            name: '软式棒球',
            type: 'bar',
            data: [1112, 0,1067,0,1049,1123,0]
        },
        {
            name: '三角网架',
            type: 'line',
            yAxisIndex: 1,
            data: [35,27,31,22,27,36,27]
        },
        {
            name: '头盔',
            type: 'line',
            yAxisIndex: 1,
            data: [56,64,63,52,79,71,72]
        },
        {
            name: '捕手护具',
            type: 'line',
            yAxisIndex: 1,
            data: [6,4,6,4,7,7,7]
        }
        ,
        {
            name: '棒球服',
            type: 'line',
            yAxisIndex: 1,
            data: [33,39,34,35,37,31,35]
        },
        {
            name: '硬式棒球',
            type: 'line',
            yAxisIndex: 1,
            data: [66,66,77,77,87,72,70]
        },
        {
            name: '软式棒球',
            type: 'line',
            yAxisIndex: 1,
            data: [47,,43,,43,47,]
        }
        
    ]
};

if (option && typeof option === 'object') {
    myChart.setOption(option);
}

        </script>
    </body>
</html>
    